//
//  LZSNoDataView.m
//  IOSProject
//
//  Created by lzs on 2018/5/9.
//  Copyright © 2018年 com.linzhisheng. All rights reserved.
//

#import "LZSNoDataView.h"

@implementation LZSNoDataView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        UIImageView *cryImageview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"没有数据.png"]];
        [cryImageview sizeToFit];
        [self addSubview:cryImageview];
        [cryImageview mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.mas_centerX);
            make.centerY.equalTo(self.mas_centerY).mas_offset(-80);
            make.size.mas_equalTo(CGSizeMake(150, 150));
        }];
        
        UILabel *hitlabel = [self setuplabelwithfont:[UIFont systemFontOfSize:15] withText:@"亲~暂无相关数据,尽请期待~" withColor:[UIColor lightGrayColor] wihtAlignemt:NSTextAlignmentCenter];
        
        [self addSubview:hitlabel];
        [hitlabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(cryImageview.mas_bottom).mas_offset(15);
            make.centerX.equalTo(self.mas_centerX);
        }];
        
    }
    return self;
}


@end
